package com.lmt_29;

public class StringUtil {
    public static void printNumber(String name){
        if (name == null){
            return ;
        }
        System.out.println("名字长度是："+name.length());
    }
    public static int maxLength(String data){
        if (data == null){
            return -1;
        }
        return data.length();
    }
}
